<style type="text/css">
#topUserstatus{
    text-align:right;
}
</style>
<div id="topUserstatus">
    {{if $output}}
    <span>{{$output}}</span>|<span><a href="{{url controller=login action=logout}}">退出</a></span>
    {{else}}
    <span><a href="#">注册</a></span>|<span><a href="{{url controller=login action=index}}">登录</a></span>
    {{/if}}
</div>
